package com.xiaoye.qbproject.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.xiaoye.qbproject.handle.GenericListTypeHandler;
import com.xiaoye.qbproject.handler.ZbAttrCustomTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author : ChenYao
 * @version : 1.0
 * @description :
 * @create : 2024-12-31 15:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ZbAttr implements Serializable {
    /**
     * 属性名称
     */
    private String attrName;
    /**
     * 属性值
     */
    private List<String> attrs = new ArrayList<>();

    public void setAttrValueList(String attrValue) {
        if (this.attrs.contains(attrValue)) {
            return;
        }
        this.attrs.add(attrValue);

    }
}
